<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
</head>
<body>
<h3>这里是主页</h3>
<br>
<span th:if="${session.user!=null}">
    gitee用户：
    <span th:text="${session.user.getName()}"></span>
</span>
<span th:if="${session.user==null}">
<a href="https://gitee.com/oauth/authorize?client_id=ee80599cee771cd0b697a971d81cfb078ecc25b13bb6d99622d48c67d93f3e19&redirect_uri=http://localhost:8080/tologincallback&response_type=code&scope=user_info">码云登录</a>
</span>
<br>
<hr>
<br>
<span th:if="${session.userh!=null}">
    github用户：
    <span th:text="${session.userh.getLogin()}"></span>
</span>
<span th:if="${session.userh==null}">
<a href="https://github.com/login/oauth/authorize?client_id=b09d59603fbfb6b7d87f&redirect_uri=http://localhost:8080/tologincallbacks&state=123456&scope=user">Github登录</a>
</span>
</body>
</html>